package com.cliave.ttweb.exception;

public class GlobalException extends RuntimeException{
    private String message;
    @Override
    public String getMessage(){return message;}

    public void  setMessage(String message){this.message=message;}

    public GlobalException(String message){
        super(message);
        this.message = message;
    }

    @Override
    public String toString() {
        return "GlobalException{" +
                "message='" + message + '\'' +
                '}';
    }
}
